<template>
  <div>
    <p v-for="index in 21" :key="index" @click="aClick(index)">{{ data }}</p>
  </div>
</template>
<script>
export default {
  name: 'TestT',
  data() {
    return {
      a: "1",
    };
  },
  computed:{
    data() {
      console.log(this.a)
      return this.a
    }
  },
  methods:{
    aClick(i) {
      console.log("aClick",i)
      this.a = i
    }
  }
};
</script>

<style scoped>
</style>

